<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:sesa="http://java.sun.com/jsf/composite/components/sesa"
                template="/pages/templates/layout.xhtml">
    <ui:define name="conteudo">
        <p:panel styleClass="painelPrincipal">
            <h:panelGroup layout="block">
                <div class="ui-messages ui-widget">
                    <div class="ui-messages-error ui-corner-all">
                        <span class="ui-messages-error-icon"></span>
                        <ul>
                            <li>
                            <h:outputLabel value="#{msgs['erro.inesperado']}"
                                           styleClass="ui-messages-error-detail" />
                            </li>
                        </ul>
                    </div>
                </div>
                <p:panel header="Detalhamento" style="margin-top: 10px;"
                         toggleable="true" collapsed="true">
                    <h:panelGroup layout="block" style="width: 99%; height: 60%;
                                  border: 1px solid #C3C3C3; overflow: auto;
                                  background-color: #FFFFFF;">
                        <h:outputText value="#{erroBean.getStrackTrace(requestScope['javax.servlet.error.exception'])}" />
                    </h:panelGroup>
                </p:panel>
            </h:panelGroup>
        </p:panel>
    </ui:define>
</ui:composition>